package main

import (
	"github.com/EndlessCheng/codeforces-go/main/testutil"
	"testing"
)

// https://codeforces.com/problemset/problem/370/D
// https://codeforces.com/problemset/status/370/problem/D
func TestCF370D(t *testing.T) {
	// just copy from website
	rawText := `
inputCopy
4 8
..w..w..
........
........
..w..w..
outputCopy
..w++w..
..+..+..
..+..+..
..w++w..
inputCopy
5 6
......
.w....
......
..w...
......
outputCopy
......
+w+...
+.+...
++w...
......
inputCopy
2 4
....
.w..
outputCopy
....
.w..
inputCopy
2 6
w..w.w
...w..
outputCopy
-1
inputCopy
2 1
w
w
outputCopy
-1
inputCopy
5 7
.......
.......
.......
.www...
.......
outputCopy
.......
.+++...
.+.+...
.www...
.......
inputCopy
5 7
.......
.wwww..
.......
.......
.......
outputCopy
.......
.wwww..
.+..+..
.+..+..
.++++..
inputCopy
9 4
....
....
....
....
....
..w.
....
....
.w..
outputCopy
....
....
....
....
....
++w+
+..+
+..+
+w++`
	testutil.AssertEqualCase(t, rawText, 6, CF370D)
}
